#!/usr/bin/env python3

import re
if __name__ == '__main__':
    input_str = input('input color value separate by \\t, for example "255  255 255":')
    input_str = input_str.strip()
    str_arr = re.split('\t', input_str)
    str_arr = [num_str.strip() for num_str in str_arr  if len(num_str.strip()) > 0]
    int_arr = [int(str_value) for str_value in str_arr if str_value.isdigit()]

    return_value = '0x'
    for num in int_arr:
        return_value += "{:02x}".format(num)

    print(return_value)
